#include <iostream>
#include <unistd.h>
#include <pthread.h>
#include "FSM.h"
#include "utility.h"



int main() {
    std::cout << "Hello, World!" << std::endl;

//    pthread_attr_t attr;
//    pthread_attr_init(&attr);
//    pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_DETACHED);

    pthread_t fsm_id;
    pthread_t getter_id;
    pthread_create(&fsm_id, /*&attr*/NULL, usefsm, NULL);
    pthread_create(&getter_id,NULL,usegetter,NULL);
    pthread_join(fsm_id,NULL);
    pthread_join(getter_id,NULL);
    return 0;
}
